Change diff and terrain back to doubles in geo
authorGPSBabel <gpsbabel@users.noreply.github.com>
Mon, 25 Feb 2019 18:34:30 +0000 (12:34 -0600)
committerGitHub <noreply@github.com>
Mon, 25 Feb 2019 18:34:30 +0000 (12:34 -0600)
Not part of official geo format that's widely used; apparently only used by rickrich's geo tools.

geo.cc

diff --git a/geo.cc b/geo.cc
index 3a737e43ec520c22a2163e8083f9aad959db0642..a04d3bb1a4554b21902f860c7f777783bfd325ba 100644 (file)
--- a/geo.cc
+++ b/geo.cc
@@ -74,9 +74,9 @@ static void GeoReadLoc()
         waypt_add_url(wpt,
                       reader.readElementText(), a.value("text").toString());
       } else if (current_tag == "/loc/waypoint/difficulty") {
-        wpt->gc_data->diff = reader.readElementText().toUInt() * 10;
+        wpt->gc_data->diff = reader.readElementText().toDouble() * 10;
       } else if (current_tag == "/loc/waypoint/terrain") {
-        wpt->gc_data->terr = reader.readElementText().toUInt() * 10;
+        wpt->gc_data->terr = reader.readElementText().toDouble() * 10;
       } else if (current_tag == "/loc/waypoint/container") {
         wpt->gc_data->container = wpt_container(reader.readElementText());
       }